<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@include file="/WEB-INF/jsp/base/taglibs.jsp"%>
<%@include file="/WEB-INF/jsp/base/head.jsp"%> 
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head> 
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link href="<%=request.getContextPath()%>/css/lightBox.css" rel="stylesheet" type="text/css"/>
<title>广告管理列表</title>
</head>
<body>

    <input type="hidden" id="addURL" value="advertiseAction!getAdvertiseAdd.do"/>
	<input type="hidden" id="delURL" value="advertiseAction!advertiseDelete.do"/>
<!-- 	<input type="hidden" id="editURL" value="propertyAction!getPropertyEdit.do"/> -->
	
	<div class="center_main">
		 <div id="btn-option">
			<a class="add-btn"  id="add" 		href="javascript:void(0);" title="新增">新增</a>
<!-- 			<a class="edit-btn" id="edit"       href="javascript:void(0);" title="修改">修改</a> -->
			<a class="del-btn"  id="delete"     href="javascript:void(0);" title="删除">删除</a>
		</div>
		<div class="center_left"></div>
	</div>

	<div id="page-top">
		<span>广告管理列表</span>
		<b></b><i></i>
	</div>	
  
	<div id="page">
	    <s:form id="form1" name="form1" namespace="/adver" method="post">
		    <div id="search">
				<div class="search-edit-wapper">
					<label for="">广告标题：</label>
			   		<input type="text"  class="form-text" name="advertiseBizBean.title" value="<s:property value='advertiseBizBean.title'/>" />
				</div>
				<div class="search-edit-wapper">
					<label for="">广告内容：</label>
			   		<input type="text"  class="form-text" name="advertiseBizBean.content" value="<s:property value='advertiseBizBean.content'/>" />
				</div>
				<div class="search-edit-wapper">
					<label for="">广告类型：</label>
			   		<input type="text"  class="form-text" name="advertiseBizBean.type" value="<s:property value='advertiseBizBean.type'/>" />
				</div>
			</div>
				
			<div id="search-btn-wapper">
				<s:submit cssClass="btn"  method="getAdvertiseList" value="查询" id="btnEnter"></s:submit>
			</div>
				
			<div id="item-list">
				<table>
					<thead>
						<tr>
							<th>选择<input type="checkbox" id="selectAll" /></th>
							<th>序号</th>
							<th>广告标题</th>
							<th>URL地址</th>
							<th>广告地址</th>
							<th>广告内容</th>
							<th>广告类型</th>
							<th>排序</th>
						</tr>
					</thead>
			   		<tbody>
						<s:iterator value="advertiseBizBeans" status="sta"> 
						<tr>
							<td><input type="checkbox" name="advertiseBizBeans[<s:property value="#sta.index+1"/>].id" class="classCheckbox" value="<s:property value="id"/>" /></td>
							<td><s:property value="#sta.index+1"/></td>
							<td><s:property value="title"/></td>
							<td><s:property value="url"/></td>
							<td>
								<a href="<%=request.getContextPath()%><s:property value="imagePath"/>" target=" _paren">
								<s:property value="imagePath"/></a>
							</td>
							<td><s:property value="content"/></td>
							<td><s:property value="type"/></td>
							<td><s:property value="orderBy"/></td>
						</tr>
						</s:iterator>
						<s:if test="%{null == advertiseBizBeans || advertiseBizBeans.size() == 0}">
						    <tr>
						       <td colspan="8"><span class="spanRB">没有数据!</span></td>
						    </tr>
						</s:if>
					</tbody>
				</table>
			</div>
	  	</s:form>
	</div>
<div id="page-bottom">
	<b></b><i></i>
	<d:page namespace="/advertise" action="advertiseAction!getAdvertiseList">
	</d:page>
</div>
</body>
</html>